Caption = "This routine is good for making ""floating"" icon palletes, etc. By the way, if you like Visual Basic and you don't have verions 2.0 yet, you should get it. It is truly amazing!"
Height = 855
Left = 240
TabIndex = 4
Top = 1320
Width = 4455
End
Begin Label Label1
BorderStyle = 1 'Fixed Single
Caption = "Click the ""Always On Top"" button to make this form ALWAYS above any other form or application. (After clicking the button, try to drag another form or application on top of this form. They will always ""fall"" behind this form) "
Height = 1095
Left = 240
TabIndex = 3
Top = 120
Width = 4455
End
End
Sub Command1_Click ()
SetWindowPos ontop.hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE Or SWP_SHOWWINDOW
End Sub
Sub Command2_Click ()
SetWindowPos ontop.hWnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE Or SWP_SHOWWINDOW
End Sub
Sub Command3_Click ()
End
End Sub
Sub Form_Load ()
Left = (Screen.Width - Width) / 2 ' Center form horizontally.
Top = (Screen.Height - Height) / 2 ' Center form vertically.